package com.vista.questionnaire.repository;

import com.vista.questionnaire.domain.Answer;
import com.vista.questionnaire.domain.Examination;
import com.vista.questionnaire.domain.Question;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * Spring Data JPA repository for the Question entity.
 */
@Repository
public interface AnswerRepository extends JpaRepository<Answer, Long> {
    List<Answer> findAllByExamination(Examination examination);
}
